
<extend name="Public/base" />
<block name="style">
    <style type="text/css">
    .btn{

    background: #09c;
}
.btn:hover{
    background: #09c;
}
    .code{
        width: 135px;
        height:40px;
        border:none;
        background: #4BBD00;
        color: #fff;

    }
    .real_status{
        width: 135px;
        height:40px;
        border:none;
        background: #4BBD00;
        color: #fff;

    }

    p{
        height:50px;
        line-height: 50px;
        font-size: 18px;
        margin-top: 20px;
    }

    .side-sub-menu > li > .item {
                color: #000;
                font-family: '宋体';
                font-size:15px;padding:0px;
                line-height: 25px;
            }
    .sidebar {
        background: #3697A0;
        position: absolute;
    }   
  
    form .form-item{
        width:50%;
        
    }

     /* 头部Logo,主导航*/
            body{
                color:#000;
                font-family: '宋体';
                font-weight: 900;
            }
            .header {
                background-color:   #3697A0;
                height: 45px;
            }
            /* 主导航 */
            .main-nav a {
                height: 45px;
                color: #150303;
            }
            .main-nav a:hover {
                height: 45px;
                background-color:#70bcf3;
                color: #150303;
            }
            .main-nav .current{
                height: 45px;
                background-color: #70bcf3;
            }
            .main-nav .current a {
                height: 45px;
                background-color: #70bcf3;
                color: #150303;
            }
            .logo{
                height: 45px;
                background: #ccc;
            }
            .sidebar{
                margin-top:-5px;
                background:     #3697A0;
                color: #000;
                position: fixed;
                height: 110%;
                margin-top:-40px;
            }
            .subnav h3{
                color: #000;
            }

            .main-nav {
                /*width:100%;*/
                float: none;
                height: auto;
            }

            .mainnav {
                /*height: auto;*/
                height: 100%;
            }

            .main-nav li{
                float: none;
                width:180px;
            }




    </style>
</block>
<block name="body">
    <div class="main-title">
        <h2>修改基础信息</h2>
    </div>
    



    <form action="{:U()}" method="post" class="form-horizontal">


        <div class="form-item">
            <label class="item-label">花呗基础费率</label>
            <div class="controls">
                <input type="text" style="height:30px;" class="text input-large" name="pt_rate" value="{$info.pt_rate}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">信用卡基础费率</label>
            <div class="controls">
                <input type="text" style="height:30px;" class="text input-large" name="pt_rate2" value="{$info.pt_rate2}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">信用卡收款手续费</label>
            <div class="controls">
                <input type="text" style="height:30px;" class="text input-large" name="xyk_fee" value="{$info.xyk_fee}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">信用卡团队奖励金额</label>
            <div class="controls">
                <input type="text" style="height:30px;" class="text input-large" name="xyk_jiangli" value="{$info.xyk_jiangli}">
            </div>
        </div>
       
        <!--<div class="form-item">-->
            <!--<label class="item-label">平台推广码</label>-->
            <!--<div class="controls">-->
                <!--<input type="text" style="height:30px;" class="text input-large" size="9" name="pt_tgnum" value="{$info.pt_tgnum}">-->
            <!--</div>-->
        <!--</div>-->


        <p style="font-size:15px;">推广码仅支持9位字母+数字。</p>



        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="button" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>

        </div>

        
    </form>
</block>
<block name="script">


    <script type="text/javascript">

        Think.setValue("extend", {$info.extend|default=0});
            //导航高亮
            highlight_subnav('{:U('ptdata')}');

        $('#submit').click(function(){
            var data=$('form').serializeArray();
            $.ajax({
                type:'post',
                url:'',
                data:data,
                success:function(m){
                    if(m>=1){
                        alert('修改成功！');
                        location.reload()
                    }else if(m==0){
                        alert('修改失败！');
                    }else{
                        alert(m)
                    }
                }

            })
        })

        $('.sq').click(function(){
            
            var app_auth_code=$('.app_auth_code').val();
            // alert(app_auth_code)
            $.ajax({
                type:'post',
                data:{'app_auth_code':app_auth_code,'type':1},
                url:"{:U('shouquan')}",
                success:function(m){
                    // alert(m)
                    if(m==1){
                        alert('解除成功！');
                        location.href="{:U('index')}";
                    }else if(m==0){
                        alert('解除失败！');
                    }else{
                        alert(m)
                    }
                }
            })

        })
 
    </script>

<!-- app_auth_token":"201712BBdf7f602ee00f4a6ca88e1116f468bD12","app_refresh_token":"201712BBc70480b713d141529bf20d71c1cb4B12","auth_app_id":"2017051207213149","user_id":"2088721036926123"} -->

</block>

